package mh.demo.springboot.system;

import org.springframework.boot.system.JavaVersion;

// 获取Java版本
public class JavaVersionDemo {

    public void run() {
        System.out.printf("Java Version: %s%n", JavaVersion.getJavaVersion());
    }

}
